[ Home | Prev | Next ]

Chapter 8


Scripting the Operating System

This chapter discusses one of the most powerful aspects of UserTalk: its ability to manipulate files, folders, and other system-level objects on the Macintosh. The next chapter continues the discussion, showing how to use these features in scripts that live on the desktop instead of inside Frontier.

The Verb Sets

UserTalk includes a full complement of verbs to deal with the Macintosh Finder and System. These verbs can be divided into the following categories: We'll look briefly at each of these verb types in the following sections. Details on each verb can be found in DocServer.

File Verbs

There are 88 file verbs in UserTalk. They enable you to: These are just some of the dozens of functions you can perform on Macintosh files, folders, and volumes with the file verbs.

Finder Verbs

The Finder is an application that comes with your Macintosh. (You'd be surprised how many people don't know that!) Finder verbs in UserTalk can: All of these features work in System 7 or greater, the "Scriptable Finder" is not required. Frontier supports many additional features if you have the Scriptable Finder (bundled with System 7.5, available for earlier releases). Verbs that work with the original System 7 Finder are in the "FinderClassic" table. The new Finder table contains the original verbs plus about 20 new ones.

Launch Verbs

With the launch verbs in UserTalk, you can launch any object that appears in the Apple menu, any Control Panel, any application, or any code resource (such as an FKEY).

Speaker Verbs

You can set up sound parameters and activate the system's speaker with the UserTalk speaker verbs.

System Verbs

System-level verbs deal for the most part with applications that are running. You can use UserTalk verbs to: Many of these features are also available in the verbs that are specific to an application, e.g. uBASE.bringToFront instead of the more generic sys.bringAppToFront.

Contents Page | Next Section -- Example: Alias Maker
HTML formatting by Steven Noreyko January 1996, User Guide revised by UserLand June 1996